/*
 * @copyright: Huang Ding
 * @Author: ding-cx
 * @Date: 2021-02-21 08:39:50
 * @LastEditors: ding-cx
 * @LastEditTime: 2021-03-24 11:12:19
 * @Description: file content
 */
import { EggPlugin } from "egg";
import * as path from "path";

const plugin: EggPlugin = {
  // static: true,
  // nunjucks: {
  //   enable: true,
  //   package: 'egg-view-nunjucks',
  // },
  io: {
    enable: false,
    package: "egg-socket.io",
  },
  ws: {
    enable: true,
    path: path.join(__dirname, "../libs/plugin/egg-ws"),
  },
  redis: {
    enable: true,
    package: "egg-redis",
  },
};

export default plugin;
